<template>
    <div class="wrap">
        <!-- head -->
        <div class="wrap-head">
            <div class="head-logo">
                <img class="logo-img" src="https://images.hzsyoudong.com/shunshun-logo.png" alt="" />
                <span class="logo-name">{{title}}</span>
            </div>
            <div class="head-operate">
                <span class="operate-btn registe" @click="showRegisteDialog = true">注册</span>
                <span class="operate-btn login" @click="goLogin">登录</span>
            </div>
        </div>
        <!-- banner -->
        <div class="wrap-banner">
            <img class="banner-img" src="https://images.hzsyoudong.com/danniaoji-home-banner.png" alt="" />
        </div>
        <!-- 政策 -->
        <!-- <div class="wrap-title">政策显示</div>
        <div class="wrap-policy">
            <img class="policy-img" src="https://images.hzsyoudong.com/fengjiqi-home-policy.png" alt="" />
        </div> -->
        <!-- 入驻流程 -->
        <div class="wrap-title">入驻流程</div>
        <div class="wrap-join">
            <div class="join-box" v-for="(item, index) in workflowList" :key="index">
                <div class="join-card">
                    <img class="card-logo" :src="item.logo" alt="" />
                    <p class="card-index">{{ item.index }}</p>
                    <p class="card-title">{{ item.title }}</p>
                </div>
                <div class="join-arrow" v-if="index < 2">
                    <img class="arrow-next" src="https://images.hzsyoudong.com/fengjiqi-home-join-next.png" alt="" />
                </div>
            </div>
        </div>
        <!-- 底部 -->
        <!-- <div class="wrap-foot">
            <div class="foot-guide">
                <div class="guide-item">
                    <img class="item-code" src="" alt="" />
                    <p class="item-name">丹企寄公众号</p>
                </div>
                <div class="guide-item">
                    <img class="item-code" src="" alt="" />
                    <p class="item-name">丹企寄小程序</p>
                </div>
            </div>
            <p class="foot-copyright">丹企寄 版权所有 Copyright ©2023 sf-express.com Inc. All rights reserved. 粤ICP 备08034243号《顺丰证照信息》</p>
        </div> -->
        <!-- 注册提示 -->
        <el-dialog title="注册" :visible.sync="showRegisteDialog" width="520px">
            <div class="wrap-dialog">
                <div class="dialog-main">
                    <div class="main-left">
                        <p class="left-top">
                            <span>商务经理热线：</span>
                            <span>18137854725</span>
                        </p>
                        <p class="left-bottom">入驻请联系商务经理：王经理</p>
                    </div>
                    <div class="main-right">
                        <img class="code" src="../../assets/img/common/ercode.png" alt="" />
                    </div>
                </div>
                <div class="dialog-operate">
                    <el-button type="primary" @click="showRegisteDialog = false">我知道了</el-button>
                </div>
            </div>
        </el-dialog>
    </div>
</template>

<script>
export default {
    name: 'Home',
    computed: {
        title() {
            return this.$store.getters.settings.title
        }
    },
    data() {
        return {
            workflowList: [
                {
                    logo: 'https://images.hzsyoudong.com/fengjiqi-home-join1.png',
                    index: '01',
                    title: '企业入驻'
                },
                {
                    logo: 'https://images.hzsyoudong.com/fengjiqi-home-join2.png',
                    index: '02',
                    title: '固定寄件地址报备'
                },
                {
                    logo: 'https://images.hzsyoudong.com/fengjiqi-home-join3.png',
                    index: '03',
                    title: '开启低价折扣寄件'
                }
            ],
            showRegisteDialog: false
        };
    },
    methods: {
        goLogin() {
            this.$router.push('/login')
        }
    },
    mounted() {

    },
};
</script>

<style lang="scss" scoped>
.wrap {
    .wrap-head {
        height: 70px;
        background: #141222;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .head-logo {
            height: 100%;
            color: #ffffff;
            font-size: 16px;
            display: flex;
            align-items: center;
            margin-left: 14%;
            .logo-img {
                width: 36px;
                height: 36px;
                border-radius: 50%;
            }
            .logo-name {
                margin-left: 10px;
            }
        }
        .head-operate {
            display: flex;
            justify-content: flex-end;
            .operate-btn {
                color: #ffffff;
                font-size: 16px;
                cursor: pointer;
                &.registe {
                    width: 96px;
                    height: 70px;
                    font-size: 14px;
                    text-align: center;
                    line-height: 70px;
                    background-color: #141222;
                }
                &.login {
                    width: 124px;
                    height: 70px;
                    text-align: center;
                    line-height: 70px;
                    background-color: #dc1e32;
                }
            }
        }
    }
    .wrap-banner {
        font-size: 0;
        .banner-img {
            width: 100%;
            height: auto;
        }
    }
    .wrap-title {
        font-size: 30px;
        font-weight: 500;
        color: #141222;
        line-height: 30px;
        margin: 100px 0 72px 0;
        text-align: center;
    }
    .wrap-policy {
        font-size: 0;
        .policy-img {
            width: 100%;
            height: auto;
        }
    }
    .wrap-join {
        max-width: 1200px;
        margin: 0 auto;
        padding-bottom: 164px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .join-box {
            display: flex;
            align-items: center;

            .join-card {
                width: 285px;
                height: 399px;
                background: #ffffff;
                border-radius: 2px;
                box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                padding: 30px 10px;
                .card-logo {
                    width: 142px;
                    height: 142px;
                }
                .card-index {
                    font-size: 24px;
                    font-weight: 700;
                    color: #141222;
                    line-height: 36px;
                    margin-top: 36px;
                }
                .card-title {
                    margin-top: 48px;
                    font-size: 18px;
                    font-weight: normal;
                    color: #141222;
                    line-height: 16px;
                }
            }
            .join-arrow {
                margin-left: 62px;
                .arrow-next {
                    width: 55px;
                    height: 55px;
                }
            }
        }
    }
    .wrap-foot {
        width: 100%;
        height: 332px;
        background: #141222;
        padding: 79px 0 28px 0;
        .foot-guide {
            display: flex;
            justify-content: center;
            align-items: center;
            .guide-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                margin: 0 32px;
                .item-code {
                    width: 115px;
                    height: 115px;
                }
                .item-name {
                    font-size: 14px;
                    font-weight: 400;
                    color: #ffffff;
                    line-height: 14px;
                    margin-top: 14px;
                }
            }
        }
        .foot-copyright {
            font-size: 14px;
            font-weight: 400;
            color: #999999;
            line-height: 14px;
            text-align: center;
            margin-top: 68px;
        }
    }
    .wrap-dialog {
        .dialog-main {
            display: flex;
            justify-content: space-between;
            .main-left {
                .left-top {
                    span {
                        font-size: 14px;
                        font-weight: bold;
                        color: #141222;
                        line-height: 18px;
                        &:nth-child(2) {
                            color: #dc1e32;
                        }
                    }
                }
                .left-bottom {
                    margin-top: 12px;
                    font-size: 14px;
                    color: #999999;
                    line-height: 18px;
                }
            }
            .main-right {
                .code {
                    width: 80px;
                    height: 80px;
                }
            }
        }
        .dialog-operate {
            margin-top: 85px;
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }
    }
}
</style>